package com.probiz.estore.product.dao.impl;

import java.util.List;

import com.probiz.estore.common.model.product.ProductAttGroup;
import com.probiz.estore.core.dao.impl.HibernateGenericDaoImpl;
import com.probiz.estore.product.dao.ProductAttGroupDao;

/**
 * Dao implementation for ProductAttGroup.
*/
public class ProductAttGroupDaoImpl extends HibernateGenericDaoImpl<ProductAttGroup> implements ProductAttGroupDao {
	/*
	 * (non-Javadoc)
	 * @see com.probiz.estore.product.dao.ProductAttGroupDao#getProductAttGroupsByProductTypeId(java.lang.Integer)
	 */
	public List<ProductAttGroup> getProductAttGroupsByProductTypeId(Integer productTypeId){
		return this.findByHql("from ProductAttGroup pag where pag.productType.productTypeId = ? order by pag.sortOrder asc", productTypeId);
	}

}
